<template>
  <div id="app">
    <a class="pages" href="javascript:;" 
    v-for="num in 5" :key="num" @click="jump(num)">{{num}}</a>
  </div>
</template>

<script>
// import pagination from './components/page'  这一行没有用，不需要引入
export default {
  name: 'App',
  data() {
    return {
      
    }
  },
  components:{
     
  },
  created() {
    
  },
  methods: {
    jump(num){
      this.$emit('change-page',num)
    }
  },
}

</script>

<style scoped>
#app {
  width:400px;
  margin:0 auto;
}
.pages{
  display: inline-block;
  padding: 20px;

}
</style>